<?php
namespace Weibo\Controller;
use Weibo\Controller\WeibobaseController;

class TestController extends WeibobaseController{
	
	public function testset(){
		session('test', array(
			'name' => 'haofei',
			'password' => '123',
		));
		$this -> output(array(
				'result' => 'set',
		));
	}
	
	public function testget(){
		
		//var_dump(session('test'));
		$session_id = session_id();
		$sessions = session();
		$this -> output(array(
				
				'session_id' => $session_id,
				'session' => $sessions,
				
		));
		
	}
	
}